package ru.ifmo.croak.api;

/**
 * {@code MessageListener} is an interface for notifications on new message for {@link MessageQuery}.
 * All implementations of this interface must be tread-safe.
 *
 * @author Roman Elizarov
 */
public interface MessageListener {
    /**
     * This method is invoked when new messages matching {@link MessageQuery} appears.
     */
    public void messageAvailable(Message message);
}
